import React, {Component} from 'react';
import {Routes, Route, Link, NavLink} from 'react-router-dom'
import Edit from "./edit.jsx";
import EditPwd from "./editPwd.jsx";

class User extends Component {
    render() {
        return (
            <div>
                <h5>默认用户页面</h5>
                <div className={"user-nav"}>
                    <Routes>
                        <NavLink to="/user/edit" element={<Edit/>}>编辑用户</NavLink>
                        <NavLink to="/user/editPwd" element={<EditPwd/>}>修改密码</NavLink>
                    </Routes>
                </div>
            </div>
        );
    }
}

export default User;